package cn.icanci.entity.dto;

/**
 * 统一结果返回
 *
 * @author icanci
 * @date Created in 2021/02/03 23:07
 * @version 1.0
 */

public class Result<T> {
    /**
     * 本次请求的状态码
     */
    private int    code;

    /**
     * 本次请求的结果信息
     */
    private String msg;

    /**
     * 请求的结果集
     */
    private T      data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
